package com.hymall.bean;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class MarketGoods {
    private Integer id;

    private String goodsSn;

    private String name;

    private Integer categoryId;

    private Integer brandId = 0;

    // private String gallery;
    private String[] gallery = new String[0];

    public void setGallery(String[] gallery) {
        if (gallery != null) {
            this.gallery = gallery;
        }
    }

    private String keywords;

    private String brief;

    private Boolean isOnSale;

    private Short sortOrder;

    private String picUrl;

    private String shareUrl;

    private Boolean isNew;

    private Boolean isHot;

    private String unit;

    private BigDecimal counterPrice;

    private BigDecimal retailPrice;

    private Date addTime = new Date();

    private Date updateTime = new Date();

    private Boolean deleted = false;

    private String detail;

}